package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Strategy;
import cn.wolfcode.luowowo.query.StrategyQuery;
import cn.wolfcode.luowowo.vo.CatalogVO;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 攻略明细业务接口
 */
public interface IStrategyService {

    Strategy get(String id);
    //新增
    void save(Strategy strategy);
    //编辑
    void update(Strategy strategy);
    //删除
    void delete(String id);
    //分页查询
    Page<Strategy> list(StrategyQuery qo);

    List<CatalogVO> groupList();

    void changeState(String id, String state);

    List<Strategy> findByCatalogId(String id);

    List<Strategy> viewnumTop3(String destId);
    //获取所有攻略信息
    List<Strategy> allList();
}

